package dataFormat;

import android.os.Parcel;
import android.os.Parcelable;

public class CalendarTextData implements Parcelable {
	private int id, day, startHour, startMinute, overHour, overMinute, priority;
	private String title, ps;
	
	public CalendarTextData(int day, int startHour,
			int startMinute, int overHour, int overMinute, int priority,
			String title, String ps) {
		super();
		this.day = day;
		this.startHour = startHour;
		this.startMinute = startMinute;
		this.overHour = overHour;
		this.overMinute = overMinute;
		this.priority = priority;
		this.title = title;
		this.ps = ps;
	}
	
	public CalendarTextData(Parcel in) {
		id = in.readInt();
		day = in.readInt();
		startHour = in.readInt();
		startMinute = in.readInt();
		overHour = in.readInt();
		overMinute = in.readInt();
		priority = in.readInt();
		title = in.readString();
		ps = in.readString();
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getDay() {
		return day;
	}

	public void setDay(int day) {
		this.day = day;
	}

	public int getStartHour() {
		return startHour;
	}

	public void setStartHour(int startHour) {
		this.startHour = startHour;
	}

	public int getStartMinute() {
		return startMinute;
	}

	public void setStartMinute(int startMinute) {
		this.startMinute = startMinute;
	}

	public int getOverHour() {
		return overHour;
	}

	public void setOverHour(int overHour) {
		this.overHour = overHour;
	}

	public int getOverMinute() {
		return overMinute;
	}

	public void setOverMinute(int overMinute) {
		this.overMinute = overMinute;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPs() {
		return ps;
	}

	public void setPs(String ps) {
		this.ps = ps;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeInt(day);
		dest.writeInt(startHour);
		dest.writeInt(startMinute);
		dest.writeInt(overHour);
		dest.writeInt(overMinute);
		dest.writeInt(priority);
		dest.writeString(title);
		dest.writeString(ps);
	}
	
	@SuppressWarnings("rawtypes")
	public static final Parcelable.Creator CREATOR = new Parcelable.Creator() {
        public CalendarTextData createFromParcel(Parcel in) {
        	return new CalendarTextData(in);
        }
 
        public CalendarTextData[] newArray(int size) {
            return new CalendarTextData[size];
        }
    };
}
